import Source from "../model/Source";

class SourceService {
    addSource(source: any){
        return Source.create(source);
    }
    getSourceByName(name: string){
        return Source.findOne({
            where: {
                name
            }
        });
    }
}

export default new SourceService